package com.designpatterns.combination;

/**
 * @author Brook
 */
public class MenuTestDrive {
    public static void main(String[] args) {
        MenuComponent pancakeHouseMenu = new Menu("PANCAKE HOUSE MENU", "Breakfast");
        MenuComponent dinerMenu = new Menu("DINER MENU", "Lunch");
        MenuComponent cafeMenu = new Menu("CAFE MENU", "Dinner");
        MenuComponent dessertMenu = new Menu("DESSERT MENU", "Dessert of course!");
        MenuComponent allMenus = new Menu("All MENUS", "All menus combined");

        allMenus.add(pancakeHouseMenu);
        allMenus.add(dinerMenu);
        allMenus.add(cafeMenu);
        allMenus.add(dessertMenu);

        pancakeHouseMenu.add(new MenuItem("手抓饼", "加火腿，加鸡蛋，多辣椒，多酱",true, 6));
        dinerMenu.add(new MenuItem("Apple Pie","Apple pie with a flake crust, topped with vanilla ice cream", true,1.59));
        cafeMenu.add(new MenuItem("牛肉饼","金黄色的牛肉饼", true, 4));
        dessertMenu.add(new MenuItem("蛋糕", "草莓蛋糕", true, 44));

        Waitress waitress = new Waitress(allMenus);

        waitress.printMenu();

        waitress.printVegetarianMenu();
    }
}
